package org.thanos.demo.service;

import org.springframework.web.bind.annotation.RestController;
import org.thanos.demo.api.DemoService;
import org.thanos.demo.entity.Demo;

@RestController
public class DemoServiceImpl implements DemoService {

    @Override
    public String getDemo(String name) {
        return "getDemo ".concat(name);
    }

    @Override
    public String getDemoParam(String name) {
        return "getDemoParam ".concat(name);
    }

    @Override
    public String postDemo(String name) {
        return "postDemo ".concat(name);
    }

    @Override
    public String requestDemo(Demo demo) {
        return demo.toString();
    }
}
